@import "../common/listFilter";

$list-filter-base-color: #666;

a {
    &:hover, &:active, &:focus {
        text-decoration: none;
    }
}

.turn-right-90 {
    transform: rotate(90deg);
    cursor: pointer;
}

.list {
    &-filter {
        width: 100%;
        padding-bottom: 40px;
        margin-bottom: 0;

        .hr {
            height: 1px;
            @include float-content(100%, center);
            background-color: $hr-color;
            padding: 0;
            margin: 10px 4% 15px 0;
        }
        &:last-child {
            padding-bottom: 0;
            margin-bottom: 0;
        }
    }
    &-title {
        @include float-content(50%, left);
        font-size: $font-size-large;
        font-weight: normal;
        text-indent: 0;
        width: 66.6%;
    }
    &-item {
        @include float-content(33.3%, left);
        padding: 0;
        &:nth-child(5), &:nth-child(8) {
            text-align: center;
        }
        &:nth-child(6), &:nth-child(9) {
            text-align: right;
        }
        &:nth-child(2) {
            color: red;
            text-align: center;
        }
        &:nth-child(3) {
            color: green;
            text-align: right;
        }
        &.unlimited {
            line-height: 50px;
            width: 33.3%;
            float: left;
            .list-item-text {
                float: right;
                margin-top: 5px;
            }
            .icon-pull {
                margin-top: 5px;
            }
        }
        &-text {
            height: 26.4px !important;
            padding: 2.4px 6px;
            line-height: 21.6px;
            color: $list-filter-base-color;
            border: 1px solid $list-filter-base-bg-color;
            border-radius: 2px;
            cursor: pointer !important;
        }
        &.active {
            .list-item-text {
                border-color: $list-filter-active-color;
                color: $list-filter-active-color;
            }
        }
    }
    &-icon {
        float: right;
        width: 30px !important;
        margin-top: -2px;
    }
}

.carousel-inner {
    height: 100%;
}

.tech-list {
    padding: 50px 15px 0;
    width: 93.5%;

    &-sidebar {
        min-width: 200px;
        max-width: 300px;
        border-right: 1px solid $hr-color;
        padding: 0 15px 0 0;

        > button:first-child {
            margin-bottom: 10px;
        }

        .fund-tip {
            padding: 20px 14px 0;
            //height: 128px;

            &-inner {
                padding: 16px;
                background-color: $dodger-blue-lighter;
            }

            .tip-title {
                font-size: 14px;
                margin: 0 0 24px;
                color: $dodger-blue;
                text-align: center;
            }
            .tip-body {
                margin-bottom: 0;
                color: $gray-6;
                line-height: 20px;
                font-size: 12px;
                a {
                    color: $gray-9;
                    text-decoration: underline;
                }
            }
        }
    }

    &-container {
        padding: 0 0 0 15px;

        .tech-list-items {
            list-style: none;
            padding-left: 25px;

            .list-head {
                list-style: none;
                color: $gray-6;

                li {
                    float: left;
                    font-size: $font-size-M;
                    padding: 0 0 15px;
                    margin-bottom: -1px !important;

                    &.active {
                        color: $dodger-blue;
                        font-weight: bold;
                        border-bottom: 5px solid $dodger-blue;
                    }
                }
            }
        }
    }
    &-item {
        border-top: 1px solid #e9e9e9;
        margin-top: 18px;
        &.finished .list-row-head-text {
            color: $gray-9;
        }
        &:hover {
            .list-row-head-text {
                color: $meta-golden;
            }
        }
        .list-row {
            margin: 18px 0 0;
            font-size: $font-size-small;
            color: #999;
            &-head {
                margin: 18px 0 0;
                font-size: $font-size-middle;
                &-text {
                    display: inline;
                    color: #333;
                }
            }
        }
        &:first-child {
            border-top: none;
            margin-top: 10px;
        }
        .tag-recommend, .tag-origin {
            display: inline-block;
            height: 18px;
            line-height: 18px;
            width: auto;
            text-align: center;
            position: relative;
            margin: 0 0 0 6px;
            top: -1px;
            font-size: $font-size-small;
            color: $brand-primary;
            letter-spacing: -1px;
            display: inline-block;
            border-radius: $border-radius-small;
            border: 1px solid $brand-primary;
            letter-spacing: .6px;
        }
        .tag-origin {
            margin-left: 0;
            color: $meta-golden;
            border-color: $meta-golden;
        }
    }
    .nav-tabs {
        height: 45px;
        overflow: hidden;
        .uib-tab {
            border: none !important;
            padding: 0;
            margin: 0 0 -1px;
            &:nth-child(2) {
                margin: 0 40px;
            }

            &.active, &:hover {
                border-top: none;
                border-left: none;
                border-right: none;
                font-weight: bold;
                & > a, & > a:hover {
                    color: $dodger-blue;
                    border: none;
                }
            }
        }

        > li {
            width: auto !important;
            > a {
                top: 0;
                padding: 0 2px 15px !important;
                margin-right: 0;
                border: none;
                background-color: transparent;
            }
        }
    }

    .keywords-attach {
        padding: 0;
        margin-bottom: 15px;
        font-size: 12px;
        color: $gray-9;

        .keywords {
            display: inline-block;
            margin-right: 10px;
            padding: 1px 3px 0;
            height: 20px;
            line-height: 18px;
            border: 1px solid $gray-9;
            border-radius: $border-radius-small;
            background-color: white;

            .glyphicon-remove {
                cursor: pointer;
                margin-left: 5px;
            }
        }
    }
}

.close {
    &-container {
        position: relative;
    }
    &-button {
        position: absolute;
        right: 0;
        bottom: 0;
        z-index: 2;
        background-color: rgba(255, 255, 255, .6);
        padding: 2px 3px;
        .glyphicon {
            position: relative;
            top: 2px;
            margin: 0 1px 0 3px;
            color: $dodger-blue;
        }
    }
}

.icon-play {
    color: $brand-primary;
    top: 3px;
    &:hover, &:active, &:focus, &:active:active {
        color: $brand-primary;
    }
}

.btn-release-tech, .btn-push-tech {
    margin-bottom: 28px;
    font-size: $font-size-middle;
}

.btn-push-tech {
    margin-bottom: 32px;
}

.searchbar {
    height: 36px;
    margin-bottom: 5px;
    position: relative;
    padding: 0;

    &-text {
        padding: 5px 40px 5px 10px;
        width: 100%;
        height: 100%;
    }
    &-hr {
        position: absolute;
        top: 6px;
        right: 36px;
        display: block;
        width: 1px;
        height: 24px;
        background-color: #dcdcdc;
    }
    &-btn {
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        width: 34px;
        background-color: transparent;
        padding: 8px 18px;
        .glyphicon {
            margin-left: -5px;
            color: $gray-d;
        }
    }
}

.banner {
    height: 500px;
    overflow: hidden;
    position: relative;
    &-caption {
        width: 100%;
        height: inherit;
        position: absolute;
    }
    &-page1, &-page2 {
        background: url('../images/common/temp-bg.png') center center no-repeat;
        background-size: cover;
        height: 100%;
        display: block;
    }
}

.tag-container {
    margin-bottom: 30px;
    font-size: $font-size-small;
}

.tag {
    display: inline-block;
    margin-bottom: 10px;
    cursor: pointer;
    border: 1px solid transparent;
    height: 20px;
    line-height: 18px;
    overflow: hidden;
    border-radius: $border-radius-small;
    &.active {
        border-color: $brand-primary;
        color: $brand-primary;
    }
}

.nullHint {
    padding-left: 25px;

    h4 {
        line-height: 3rem;
        font-weight: normal;
    }
}

.hotKeywords {
    float: left;
    padding: 3px 5px 3px 0;
    margin: 0 10px 0 0;
    font-size: $font-size-small;
}
